package com.example.water.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.water.mapper.StRsvrRMapper;
import com.example.water.pojo.StRiverR;
import com.example.water.pojo.StSitinfoB;
import com.example.water.service.StRiverRService;
import com.example.water.mapper.StRiverRMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lin
* @description 针对表【st_river_r(河流信息表)】的数据库操作Service实现
* @createDate 2023-11-06 09:43:53
*/
@Service
public class StRiverRServiceImpl extends ServiceImpl<StRiverRMapper, StRiverR>
    implements StRiverRService{
    @Autowired
    private StRiverRMapper stRiverRMapper;
    @Override
    public List<StSitinfoB> getStRiverRPage(Integer pageSize, Integer currentPage) {
        currentPage=(currentPage-1)*pageSize;


        return stRiverRMapper.getStRsvrRPage(pageSize,currentPage);
    }

    @Override
    public Integer getAllCount() {
        return stRiverRMapper.getAllCount();
    }
}




